<?php
	$ISTEXT = false;
	header('Content-type: text/xml');
	
	$xml = xmlwriter_open_memory();

	xmlwriter_set_indent($xml,true);
	xmlwriter_start_document($xml,"1.0","UTF-8");
	xmlwriter_start_element($xml,"blaatschaap");
	xmlwriter_write_element($xml,"protocol","0.1");

//-- xml login output 

	if ($_REQUEST['do']=="xmllogin") 	include ("login.php");
	if ($_REQUEST['do']=="xmllogout") 	include ("logout.php");
	if ($_REQUEST["do"]=="xmlreq") 		include ("radioreq.php");
	if ($_REQUEST["do"]=="xmlmessages") 		include ("messages.php");
  if ($_REQUEST["do"]=="xmllang") 		include ("lang.php");
  if ($_REQUEST["do"]=="xmlforumtop") 		include ("forumtop.php");
  if ($_REQUEST['do']=="xmlnews") 	include ("news.php");

	xmlwriter_end_element($xml);
	echo (xmlwriter_output_memory($xml));

?>
